<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <StringResourcesPath>../../src/Resources/Strings.resx</StringResourcesPath>
    <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-unix;$(NetCoreAppCurrent)-browser</TargetFrameworks>
    <IgnoreForCI Condition="'$(TargetOS)' == 'browser'">true</IgnoreForCI>
  </PropertyGroup>
  <!-- Do not reference these assemblies from the TargetingPack since we are building part of the source code for tests. -->
  <ItemGroup>
    <DefaultReferenceExclusion Include="System.Net.NameResolution" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="..\..\src\System\Net\IPHostEntry.cs"
             Link="ProductionCode\System\Net\IPHostEntry.cs" />
    <Compile Include="AssemblyInfo.cs" />
    <Compile Include="NameResolutionPalTests.cs" />
    <Compile Include="Fakes\DnsFake.cs" />
    <Compile Include="Fakes\IPAddressFakeExtensions.cs" />
    <Compile Include="$(CommonPath)System\Net\Logging\NetEventSource.Common.cs"
             Link="Common\System\Net\Logging\NetEventSource.cs" />
    <Compile Include="$(CommonPath)System\Net\Sockets\ProtocolType.cs"
             Link="Common\System\Net\Sockets\ProtocolType.cs" />
    <Compile Include="$(CommonPath)System\Net\Sockets\SocketType.cs"
             Link="Common\System\Net\Sockets\SocketType.cs" />
    <Compile Include="$(CommonPath)System\Net\Sockets\ProtocolFamily.cs"
              Link="Common\System\Net\Sockets\ProtocolFamily.cs" />
    <Compile Include="$(CommonPath)System\Net\IPEndPointStatics.cs"
             Link="Common\System\Net\IPEndPointStatics.cs" />
    <Compile Include="$(CommonPath)System\Net\IPAddressParserStatics.cs"
             Link="Common\System\Net\IPAddressParserStatics.cs" />
    <Compile Include="$(CommonPath)System\Net\SocketProtocolSupportPal.cs"
             Link="Common\System\Net\SocketProtocolSupportPal.cs" />
    <Compile Include="$(CommonTestPath)System\Net\Configuration.cs"
             Link="Common\System\Net\Configuration.cs" />
    <Compile Include="$(CommonTestPath)System\Net\Configuration.Http.cs"
             Link="Common\System\Net\Configuration.Http.cs" />
  </ItemGroup>
  <ItemGroup Condition=" '$(TargetPlatformIdentifier)' == 'windows' ">
    <Compile Include="..\..\src\System\Net\NameResolutionPal.Windows.cs"
             Link="ProductionCode\System\Net\NameResolutionPal.Windows.cs" />
    <Compile Include="$(CommonPath)System\Net\InternalException.cs"
             Link="Common\System\Net\InternalException.cs" />
    <Compile Include="$(CommonPath)System\Net\SocketProtocolSupportPal.Windows.cs"
             Link="System\Net\SocketProtocolSupportPal.Windows" />
    <Compile Include="$(CommonPath)System\Net\SocketAddressPal.Windows.cs"
             Link="Common\System\Net\SocketAddressPal.Windows" />
    <!-- Debug only -->
    <Compile Include="$(CommonPath)System\Net\DebugSafeHandle.cs"
             Link="Common\System\Net\DebugSafeHandle.cs" />
    <!-- Interop -->
    <Compile Include="$(CommonPath)Interop\Windows\Interop.Libraries.cs"
             Link="Common\Interop\Windows\Interop.Libraries.cs" />
    <Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.LoadLibraryEx_IntPtr.cs"
             Link="Common\Interop\Windows\Kernel32\Interop.LoadLibraryEx_IntPtr.cs" />
    <Compile Include="$(CommonPath)Interop\Windows\WinSock\AddressInfoHints.cs"
             Link="Common\Interop\Windows\WinSock\AddressInfoHints.cs" />
    <Compile Include="$(CommonPath)Interop\Windows\WinSock\Interop.closesocket.cs"
             Link="Common\Interop\Windows\WinSock\Interop.closesocket.cs" />
    <Compile Include="$(CommonPath)Interop\Windows\WinSock\Interop.gethostname.cs"
             Link="Common\Interop\Windows\WinSock\Interop.gethostname.cs" />
    <Compile Include="$(CommonPath)Interop\Windows\WinSock\Interop.GetNameInfoW.cs"
             Link="Common\Interop\Windows\WinSock\Interop.GetNameInfoW.cs" />
    <Compile Include="$(CommonPath)Interop\Windows\WinSock\Interop.GetAddrInfoW.cs"
             Link="Common\Interop\Windows\WinSock\Interop.GetAddrInfoW.cs" />
    <Compile Include="$(CommonPath)Interop\Windows\WinSock\Interop.WSAStartup.cs"
             Link="Common\Interop\Windows\WinSock\Interop.WSAStartup.cs" />
    <Compile Include="$(CommonPath)Interop\Windows\WinSock\Interop.WSASocketW.cs"
             Link="Common\Interop\Windows\WinSock\Interop.WSASocketW.cs" />
    <Compile Include="$(CommonPath)Interop\Windows\WinSock\Interop.SocketConstructorFlags.cs"
             Link="Common\Interop\Windows\WinSock\Interop.SocketConstructorFlags.cs" />
    <Compile Include="$(CommonPath)Interop\Windows\WinSock\Interop.GetAddrInfoExW.cs"
             Link="Common\Interop\Windows\WinSock\Interop.GetAddrInfoExW.cs" />
  </ItemGroup>
  <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'unix' or '$(TargetPlatformIdentifier)' == 'browser'">
    <Compile Include="$(CommonPath)System\Net\SocketAddressPal.Unix.cs"
             Link="Common\System\Net\Internals\SocketAddressPal.Unix.cs" />
    <Compile Include="$(CommonPath)System\Net\InteropIPAddressExtensions.Unix.cs"
             Link="Common\System\Net\InteropIPAddressExtensions.Unix.cs" />
    <Compile Include="..\..\src\System\Net\NameResolutionPal.Unix.cs"
             Link="ProductionCode\System\Net\NameResolutionPal.Unix.cs" />
    <Compile Include="$(CommonPath)System\Net\SocketProtocolSupportPal.Unix.cs"
             Link="System\Net\SocketProtocolSupportPal.Unix.cs" />
    <Compile Include="$(CommonPath)Interop\Unix\Interop.Errors.cs"
             Link="Common\Interop\CoreLib\Unix\Interop.Errors.cs" />
    <Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs"
             Link="Common\Interop\Unix\Interop.Libraries.cs" />
    <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Close.cs"
             Link="Common\Interop\Unix\System.Native\Interop.Close.cs" />
    <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetHostName.cs"
             Link="Common\Interop\Unix\System.Native\Interop.GetHostName.cs" />
    <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetNameInfo.cs"
             Link="Common\Interop\Unix\System.Native\Interop.GetNameInfo.cs" />
    <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.HostEntry.cs"
             Link="Common\Interop\Unix\System.Native\Interop.HostEntry.cs" />
    <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.IPAddress.cs"
             Link="Common\Interop\Unix\System.Native\Interop.IPAddress.cs" />
    <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Socket.cs"
             Link="Common\Interop\Unix\System.Native\Interop.Socket.cs" />
    <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.SocketAddress.cs"
             Link="Common\Interop\Unix\System.Native\Interop.SocketAddress.cs" />
  </ItemGroup>
</Project>
